package com.ruoyi.mall.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品对象 mall_product
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
public class MallProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品ID */
    private Long productId;

    /** 分类ID */
    @Excel(name = "分类ID")
    private Long categoryId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 商品编码 */
    @Excel(name = "商品编码")
    private String productCode;

    /** 副标题 */
    @Excel(name = "副标题")
    private String subtitle;

    /** 商品描述 */
    private String description;

    /** 主图 */
    @Excel(name = "主图")
    private String mainImage;

    /** 商品图片（JSON格式） */
    private String images;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 原价 */
    @Excel(name = "原价")
    private BigDecimal originalPrice;

    /** 成本价 */
    @Excel(name = "成本价")
    private BigDecimal costPrice;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Integer stock;

    /** 低库存预警 */
    @Excel(name = "低库存预警")
    private Integer lowStock;

    /** 销量 */
    @Excel(name = "销量")
    private Integer sales;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Integer views;

    /** 重量（kg） */
    @Excel(name = "重量", readConverterExp = "kg=")
    private BigDecimal weight;

    /** 体积（立方米） */
    @Excel(name = "体积", readConverterExp = "m³=")
    private BigDecimal volume;

    /** 是否推荐（0否 1是） */
    @Excel(name = "是否推荐", readConverterExp = "0=否,1=是")
    private String isRecommend;

    /** 是否新品（0否 1是） */
    @Excel(name = "是否新品", readConverterExp = "0=否,1=是")
    private String isNew;

    /** 是否热销（0否 1是） */
    @Excel(name = "是否热销", readConverterExp = "0=否,1=是")
    private String isHot;

    /** 状态（0上架 1下架） */
    @Excel(name = "状态", readConverterExp = "0=上架,1=下架")
    private String status;

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setProductCode(String productCode) 
    {
        this.productCode = productCode;
    }

    public String getProductCode() 
    {
        return productCode;
    }
    public void setSubtitle(String subtitle) 
    {
        this.subtitle = subtitle;
    }

    public String getSubtitle() 
    {
        return subtitle;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setMainImage(String mainImage) 
    {
        this.mainImage = mainImage;
    }

    public String getMainImage() 
    {
        return mainImage;
    }
    public void setImages(String images) 
    {
        this.images = images;
    }

    public String getImages() 
    {
        return images;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setOriginalPrice(BigDecimal originalPrice) 
    {
        this.originalPrice = originalPrice;
    }

    public BigDecimal getOriginalPrice() 
    {
        return originalPrice;
    }
    public void setCostPrice(BigDecimal costPrice) 
    {
        this.costPrice = costPrice;
    }

    public BigDecimal getCostPrice() 
    {
        return costPrice;
    }
    public void setStock(Integer stock) 
    {
        this.stock = stock;
    }

    public Integer getStock() 
    {
        return stock;
    }
    public void setLowStock(Integer lowStock) 
    {
        this.lowStock = lowStock;
    }

    public Integer getLowStock() 
    {
        return lowStock;
    }
    public void setSales(Integer sales) 
    {
        this.sales = sales;
    }

    public Integer getSales() 
    {
        return sales;
    }
    public void setViews(Integer views) 
    {
        this.views = views;
    }

    public Integer getViews() 
    {
        return views;
    }
    public void setWeight(BigDecimal weight) 
    {
        this.weight = weight;
    }

    public BigDecimal getWeight() 
    {
        return weight;
    }
    public void setVolume(BigDecimal volume) 
    {
        this.volume = volume;
    }

    public BigDecimal getVolume() 
    {
        return volume;
    }
    public void setIsRecommend(String isRecommend) 
    {
        this.isRecommend = isRecommend;
    }

    public String getIsRecommend() 
    {
        return isRecommend;
    }
    public void setIsNew(String isNew) 
    {
        this.isNew = isNew;
    }

    public String getIsNew() 
    {
        return isNew;
    }
    public void setIsHot(String isHot) 
    {
        this.isHot = isHot;
    }

    public String getIsHot() 
    {
        return isHot;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productId", getProductId())
            .append("categoryId", getCategoryId())
            .append("productName", getProductName())
            .append("productCode", getProductCode())
            .append("subtitle", getSubtitle())
            .append("description", getDescription())
            .append("mainImage", getMainImage())
            .append("images", getImages())
            .append("price", getPrice())
            .append("originalPrice", getOriginalPrice())
            .append("costPrice", getCostPrice())
            .append("stock", getStock())
            .append("lowStock", getLowStock())
            .append("sales", getSales())
            .append("views", getViews())
            .append("weight", getWeight())
            .append("volume", getVolume())
            .append("isRecommend", getIsRecommend())
            .append("isNew", getIsNew())
            .append("isHot", getIsHot())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
